-- GENERATED SPELL FOR [Syndicate Highwayman] --


function spell0_2586(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(37685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2586', 630, 1)
end

function Sorts_2586(pUnit, Event)
local choix_sorts_2586 = math.random(0, 0)
if choix_sorts_2586 == 0 then
pUnit:RegisterEvent('spell0_2586', 1, 1)
end
end

function mob2586_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2586', math.random(1500, 3000), 1)
end

function mob2586_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2586_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2586_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2586, 1, 'mob2586_Action')
RegisterUnitEvent(2586, 2, 'mob2586_Leave')
RegisterUnitEvent(2586, 3, 'mob2586_Kill')
RegisterUnitEvent(2586, 4, 'mob2586_Die')
